import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const CONFIGCENTER: AppRouteRecordRaw = {
    path: '/configCenter',
    name: 'configCenter',
    component: DEFAULT_LAYOUT,
    meta: {
        locale: 'menu.configCenter',
        requiresAuth: true,
        icon: 'iconfont icon-shenhemokuai1',
        order: 4,
        hideInMenu: false,
        permCode:'A040000000',//权限资源code，用于权限控制
        // ignoreCache: true,
    },
    children: [
        {
            path: 'labeltype',
            name: 'LabelType',
            // component: () => import('@/views/configCenter/labelType.vue'),
            component: () => import('@/views/configCenter/MarkPage.vue'),
            meta: {
                locale: 'menu.configCenter.labelType',
                requiresAuth: true,
                roles: ['*'],
                permCode:'A040100000',//权限资源code，用于权限控制
                // ignoreCache: true,
            },
        },
        {
            path: 'labelcomponent',
            name: 'LabelComponent',
            // component: () => import('@/views/configCenter/labelComponent.vue'),
            component: () => import('@/views/configCenter/MarkPage.vue'),
            meta: {
                locale: 'menu.configCenter.labelComp',
                requiresAuth: true,
                roles: ['*'],
                permCode:'A040200000',//权限资源code，用于权限控制
                // ignoreCache: true,
            },
        },
        {
            path: 'labeltool',
            name: 'LabelTool',
            // component: () => import('@/views/configCenter/labelTool.vue'),
            component: () => import('@/views/configCenter/MarkPage.vue'),
            meta: {
                locale: 'menu.configCenter.labelTool',
                requiresAuth: true,
                roles: ['*'],
                permCode:'A040300000',//权限资源code，用于权限控制
                // ignoreCache: true,
            },
        },
        {
            path: 'labelconfig',
            name: 'LabelConfig',
            // component: () => import('@/views/configCenter/labelConfig.vue'),
            component: () => import('@/views/configCenter/MarkPage.vue'),
            meta: {
                locale: 'menu.configCenter.labelConfig',
                requiresAuth: true,
                roles: ['*'],
                permCode:'A040400000',//权限资源code，用于权限控制
                // ignoreCache: true,
            },
        },
    ],
};

export default CONFIGCENTER;